Skip to content

Pavan/added verification#1

Open
pavan3008 wants to merge 3 commits intomainfrom
pavan/added-verification
Open

Pavan/added verification#1
pavan3008 wants to merge 3 commits intomainfrom
pavan/added-verification

Conversation

@pavan3008
Copy link
Owner

@pavan3008 pavan3008 commented May 20, 2023

Proposed Changes

A Lambda function that verifies Google Sign-In tokens and retrieves user information. It can be integrated with a SwiftUI front-end application.

Checklist

  • This has been tested
  • Self-documenting code
  • Code is linted

Instructions to review

Please review the code

Copy link
Collaborator

@vprajeetreddy-404 vprajeetreddy-404 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! A few nitpicks to resolve.

README.md Outdated
# GoogleSignInVerification No newline at end of file
# Google Sign-In Verification

This repository contains code for an API endpoint that verifies Google Sign-In tokens and retrieves user information. It can be integrated with a SwiftUI front-end application.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it is deployed as a Lambda function, we can use the term "Lambda function" instead of "API endpoint".

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

Users.js Outdated
@@ -0,0 +1,96 @@
const AWS = require('aws-sdk');
const dynamodb = new AWS.DynamoDB.DocumentClient();
const DYNAMODB_TABLE_NAME = "trips";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The table name can be provided in .env as well

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to .env

};
await dynamodb.put(putParams).promise();
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove space for consistency

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code is linted.

Copy link
Collaborator

@vprajeetreddy-404 vprajeetreddy-404 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to go!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants